﻿//Author:arens
//Date:2010-09-26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GaiNo.Core
{
    /// <summary>
    /// 仅抛出系统提示信息
    /// </summary>
    public class MessageException : ApplicationException
    {
        public MessageException(string msg)
            : base(msg)
        {

        }
        public override string Message
        {
            get
            {
                return base.Message;
            }
        }
    }//end class
    public class NotDisplayedException : ApplicationException
    {
        public NotDisplayedException()
        { }
        public override string Message
        {
            get
            {
                return "Sorry, an unknown program error, please contact the administrator";
            }
        }
    }
    public class ConnectionStringNotFoundException : ApplicationException
    {
        public ConnectionStringNotFoundException(string name)
            : base(string.Format("ConnectionString {0} coult not be found in app.confg or web.config.", name)) { }
    }//end class
}//end namespace
